<?php

class Controller_Site_Partner extends Controller_Site_Profile 
{
	protected $partner;
	
	public function preDispatch()
	{
		parent::preDispatch();
		$ad_company_id = $this->profile->getPartnerCompanyId();
		if ($ad_company_id) {
			$this->partner = AdCompanyPeer::getInstance()->fetchById($ad_company_id);
		}
		if (!$this->partner) {
			$this->_redirect("/");
			return;
		}
	}
}